package CSS::Builder::Selector::Pseudo;
use Moose;

with 'CSS::Builder::Roles::List';

# :link , :active , :first-child
has 'pseudo'         => ( isa => 'Any' , is => 'rw');

sub css {
      my $self = shift;
      
      my $selectors = $self->list;
      my $c = $self->docss($selectors->[0]);
      
      return $self->pseudo . ($c ? $c : '');
}


1;